package com.iot.core.domain;

import com.alibaba.fastjson.JSON;

import java.util.ArrayList;
import java.util.List;

public class MenuTree<T> extends BaseTree<T> {
	/**
	 * 节点ID
	 */
	private String menuId;
	/**
	 * 路由
	 */
	private String url;

	/**
	 * 图标
	 */
	private String icon;

	/**
	 * 节点id
	 */
	private String id;
	/**
	 * 节点的子节点
	 */
	private List<MenuTree<T>> children = new ArrayList<MenuTree<T>>();

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public List<MenuTree<T>> getChildren() {
		return children;
	}

	public void setChildren(List<MenuTree<T>> children) {
		this.children = children;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}
}

